package com.vhans.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vhans.core.domain.Card;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 优惠卡片Mapper接口
 *
 * @author vhans
 * @date 2023-06-04
 */
@Repository
public interface CardMapper extends BaseMapper<Card>{

    /**
     * 查询用户这个月的卡片记录
     */
    List<Card> selectCard(@Param("userId") Integer userId);
}
